<?php

namespace app\store\model;

use app\common\model\User as UserModel;

/**
 * 用户模型
 * Class User
 * @package app\store\model
 */
class User extends UserModel
{
    public function image()
    {
        return $this->belongsTo('UploadFile', 'share_img', 'file_id')
            ->bind(['file_path', 'file_name', 'file_url']);
    }
}
